Optimal. Leaf size=48 \[ -\frac{a^2}{x}+\frac{1}{3} x^3 \left (2 a c+b^2\right )+2 a b x+\frac{2}{5} b c x^5+\frac{c^2 x^7}{7} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.021085, antiderivative size = 48, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.056, Rules used = {1108} \[ -\frac{a^2}{x}+\frac{1}{3} x^3 \left (2 a c+b^2\right )+2 a b x+\frac{2}{5} b c x^5+\frac{c^2 x^7}{7} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1108
Rubi steps
\begin{align*} \int \frac{\left (a+b x^2+c x^4\right )^2}{x^2} \, dx &=\int \left (2 a b+\frac{a^2}{x^2}+\left (b^2+2 a c\right ) x^2+2 b c x^4+c^2 x^6\right ) \, dx\\ &=-\frac{a^2}{x}+2 a b x+\frac{1}{3} \left (b^2+2 a c\right ) x^3+\frac{2}{5} b c x^5+\frac{c^2 x^7}{7}\\ \end{align*}
Mathematica [A] time = 0.0169373, size = 48, normalized size = 1. \[ -\frac{a^2}{x}+\frac{1}{3} x^3 \left (2 a c+b^2\right )+2 a b x+\frac{2}{5} b c x^5+\frac{c^2 x^7}{7} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.046, size = 45, normalized size = 0.9 \begin{align*}{\frac{{c}^{2}{x}^{7}}{7}}+{\frac{2\,bc{x}^{5}}{5}}+{\frac{2\,ac{x}^{3}}{3}}+{\frac{{b}^{2}{x}^{3}}{3}}+2\,abx-{\frac{{a}^{2}}{x}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.951097, size = 57, normalized size = 1.19 \begin{align*} \frac{1}{7} \, c^{2} x^{7} + \frac{2}{5} \, b c x^{5} + \frac{1}{3} \,{\left (b^{2} + 2 \, a c\right )} x^{3} + 2 \, a b x - \frac{a^{2}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.42244, size = 111, normalized size = 2.31 \begin{align*} \frac{15 \, c^{2} x^{8} + 42 \, b c x^{6} + 35 \,{\left (b^{2} + 2 \, a c\right )} x^{4} + 210 \, a b x^{2} - 105 \, a^{2}}{105 \, x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.32274, size = 44, normalized size = 0.92 \begin{align*} - \frac{a^{2}}{x} + 2 a b x + \frac{2 b c x^{5}}{5} + \frac{c^{2} x^{7}}{7} + x^{3} \left (\frac{2 a c}{3} + \frac{b^{2}}{3}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13804, size = 59, normalized size = 1.23 \begin{align*} \frac{1}{7} \, c^{2} x^{7} + \frac{2}{5} \, b c x^{5} + \frac{1}{3} \, b^{2} x^{3} + \frac{2}{3} \, a c x^{3} + 2 \, a b x - \frac{a^{2}}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]